package JavaSE.CODE.javaThread.Create;

/**
 * 创建线程方法一：继承Thread类，重写run方法，调用start开启线程
 * 总结：线程开启不一定立即执行，由OS调度
 */
public class Index {
    public static void main(String[] args) {
        ThreadA threadA = new ThreadA();
        ThreadB threadB = new ThreadB();
        ThreadC threadC = new ThreadC();

//        threadA.run();
//        threadB.run();
//        threadC.run();
//
//        for (int i = 0; i < 200; i++) {
//            System.out.println("main");
//        }


        ThreadARunnable threadARunnable = new ThreadARunnable();
        new Thread(threadARunnable).start();


    }
}
